const state = {
    counter:1
};

const getters = {

};

const mutations = {
    increment(state,index){
        state.counter += index;
    }
}

const actions = {
    increment(context,index){
        context.commit('increment',index)
    }
}

export default {namespaced:true,state,getters,mutations,actions}